package com.techstar.api.pojo.city;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.DistrictRoadSpeedId;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 行政区道路速度
 * @date 2021年6月25日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "district_road_speed")
@IdClass(DistrictRoadSpeedId.class)
@org.hibernate.annotations.Table(appliesTo = "district_road_speed",comment="pord-3-行政区道路速度")
public class DistrictRoadSpeed {
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '道路标识'")
	private String roadId;
	@Column(columnDefinition="varchar(100) COMMENT '道路名称'")
	private String roadName;
	@Column(columnDefinition="varchar(100) COMMENT '道路类型'")
	private String roadType;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '所属行政区标识'")
	private String distId;
	@Column(columnDefinition="varchar(100) COMMENT '所属行政区名称'")
	private String distName;
	@Column(columnDefinition="varchar(100) COMMENT '拥堵指数'")
	private String congestIndex;
	@Column(columnDefinition="varchar(100) COMMENT '拥堵路段数量'")
	private String congestSectionNum;
	@Column(columnDefinition="varchar(100) COMMENT '早高峰平均速度'")
	private String morningTwoSpeed;
	@Column(columnDefinition="varchar(100) COMMENT '早高峰平均速度同比'")
	private String morningTwoSpeedCsy;
	@Column(columnDefinition="varchar(100) COMMENT '晚高峰平均速度'")
	private String eveningTwoSpeed;
	@Column(columnDefinition="varchar(100) COMMENT '晚高峰平均速度同比'")
	private String eveningTwoSpeedCsy;
	@Column(columnDefinition="datetime(0) COMMENT '业务更新时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}
